package com.YxyBackMange.Controller.web;

import com.YxyBackMange.Entity.Ware.WareGoodsBrand;
import com.YxyBackMange.Mapper.web.WebGoodsBrandMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @outhor 路♥克
 * 2017-12-14 16:08
 */
@Controller
@RequestMapping("/Web/WebGoodsBrand")
public class WebGoodsBrandController {

    @Autowired
    private WebGoodsBrandMapper webGoodsBrandMapper;

    @RequestMapping(value = "/findWareGoodsBrand",method = RequestMethod.GET)
    @ResponseBody
    public List<WareGoodsBrand> findWareGoodsBrand(){
        List<WareGoodsBrand> wareGoodsBrands = webGoodsBrandMapper.selectAll();
        return wareGoodsBrands;
    }
}
